const connect = require("../sql")
/* 
    获取所有的班级信息
*/
async function queryall(req,res){
    const result = await connect("select * from clazz",[])
    if(result.length){
        res.send({code:200,msg:result})
    }else{
        res.send({code:303,msg:"获取班级信息失败"})
    }
}

module.exports = {
    queryall
}